/*****************************************************************************************
Arise Engine		SplitterWnd.h

					E-mail:		arise_engine@mail.ru

created:			18.03.2007
last changes:		18.03.2007
*****************************************************************************************/
#pragma once


class CMySplitterWnd : public CSplitterWnd
{
protected:
    CSplitterWnd*	m_pSplitterWndPrev;
    CSplitterWnd*	m_pSplitterWndNext;
    bool			m_bPreserveLastPaneSize;

public:
    CMySplitterWnd() { m_bPreserveLastPaneSize = false; }
    void SetPrev(CSplitterWnd* pWnd) { m_pSplitterWndPrev = pWnd; }
    void SetNext(CSplitterWnd* pWnd) { m_pSplitterWndNext = pWnd; }
	virtual void ActivateNext(BOOL bPrev = FALSE);
    virtual void RecalcLayout();
  	virtual void StopTracking(BOOL bAccept);

    void PreserveLastPaneSize() { m_bPreserveLastPaneSize = true; }
};
